import { createSlice,configureStore } from "@reduxjs/toolkit";
import {allRoutes} from '../router/index'
import { userSlice } from './user'
// 路由数据
let routerSlice = createSlice({
    name: 'routerSlice',
    initialState: {
        routes: [...allRoutes]
    }
})


const store = configureStore({
    reducer: {
        routerReducer: routerSlice.reducer,
        userReducerce: userSlice.reducer
    }
})

export default store